<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/admin/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/css/public.css" media="all">
    <script src="/static/admin/js/echarts.min.js"></script>
<style>
    #mainc{
        width: 30%;height:400px; float: left; border: 1px solid #bbbcbd;margin-left: 20px;
    }
    table {
        width: 50%;
        /* float: right; */
    }

  th, td {
    padding: 8px;
    text-align: left;
  }

  
</style>
</head>
<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
    
            <fieldset class="table-search-fieldset">
                <legend>搜索信息</legend>
                <div style="margin: 10px 10px 10px 10px">
                    <form class="layui-form layui-form-pane" action="">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">用户姓名</label>
                                <div class="layui-input-inline">
                                    <select name="" id="">
                                        <option value="1">1111111</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">用户性别</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="sex" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                          
                            <div class="layui-inline">
                                <button type="submit" class="layui-btn layui-btn-primary"  lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
                            </div>
                        </div>
                    </form>
                </div>
            </fieldset>
    
        </div>

        <div style="width: 100%; margin: auto; height: 900px;">
         
            <div id="maina" style="width: 30%;height:400px;float: left; border: 1px solid #bbbcbd;"></div>
            <div id="mainb" style="width: 30%;height:400px; float: left; border: 1px solid #bbbcbd; margin-left: 20px;"></div>
            <div id="mainc">
                <div style="font-size: 18px; font-weight: bold;">合作伙伴实时统计</div>
                <table>
                    <thead>
                      <tr>
                       <th>排名</th>
                       <th>名称</th>
                       <th>销售额</th>
                      </tr>
                     </thead>
                     <tbody>
                      <tr>
                       <td>行列1</td>
                       <td>行1列2</td>
                       <td>行1列2</td>
                      </tr>

                     </tbody>
                    </table>
            </div>
            <div id="maind" style="width: 45%; height:400px; float: left; border: 1px solid #bbbcbd; margin-left: 20px; margin-top: 20px;"></div>
            <div id="maine" style="width: 45%; height:400px; float: left; border: 1px solid #bbbcbd; margin-left: 20px; margin-top: 20px;"></div>
        </div>
    </div>



</body>
<script>

    var myCharta = echarts.init(document.getElementById('maina'));
    var myChartb = echarts.init(document.getElementById('mainb'));
    var myChartc = echarts.init(document.getElementById('maind'));
    var myCharte = echarts.init(document.getElementById('maine'));
    
    const option = {
        tooltip: {},
        legend: {
                show: false
        },
        title: {
            text: '销售经理返利统计',
            textStyle: {
                fontSize: 18,
                color: '#333'
            },
        },
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            containLabel: true
        },
        xAxis: [{
            type: 'value',
            boundaryGap: [0, 0.01],
            axisLabel: {
                formatter: function (value) {
                    if (value >= 10000) {
                    return (value / 10000) + 'w';
                    } else {
                    return value;
                    }
                }
            }
            
        }],
        yAxis: [{
            type: 'category',
            axisTick: {show: false},
            data: {:htmlspecialchars_decode($manage_rebate_title)},
        }],
        series: [{
            name: '',
            type: 'bar',
            label: {
                normal: {
                    show: true,
                    position: 'top'
                }
            },
            itemStyle: {
                color: '#FF9F7F'
            },
  
            data: {:htmlspecialchars_decode($manage_rebate_money)}
        }]
    };
    myCharta.setOption(option);

    option1 = {
        tooltip: {},
        title: {
            text: '各省份用户服务费柱状统计',
            textStyle: {
                fontSize: 18,
                color: '#333'
            },
        },
        xAxis: {
            type: 'category',
            data: ['吉林省', '河北省', '辽宁省', '黑龙江省']
        },
        yAxis: {
            type: 'value',
            axisLabel: {
                formatter: function (value) {
                    if (value >= 10000) {
                    return (value / 10000) + 'w';
                    } else {
                    return value;
                    }
                }
            }
        },
        series: [
            {
            data: [10000,2,3,4],
            type: 'bar'
            }
        ]

    };
    myChartb.setOption(option1);

    option2 = {
        tooltip: {},
        title: {
            text: '经销商下销售经理合计返利占比（24小时前）',
            textStyle: {
                fontSize: 18,
                color: '#333'
            },
        },
        xAxis: {
            type: 'category',
            data: ['吉林省', '河北省', '辽宁省', '黑龙江省']
        },
        yAxis: {
            type: 'value',
            axisLabel: {
                formatter: function (value) {
                    if (value >= 10000) {
                    return (value / 10000) + 'w';
                    } else {
                    return value;
                    }
                }
            }
        },
        series: [
            {
            data: [10000,2,3,4],
            type: 'bar'
            }
        ]

    };
    myChartc.setOption(option2);

    option3 = {
        tooltip: {},
        title: {
            text: '各城市用户服务费柱状统计',
            textStyle: {
                fontSize: 18,
                color: '#333'
            },
        },
        xAxis: {
            type: 'category',
            data: ['吉林省', '河北省', '辽宁省', '黑龙江省']
        },
        yAxis: {
            type: 'value',
            axisLabel: {
                formatter: function (value) {
                    if (value >= 10000) {
                    return (value / 10000) + 'w';
                    } else {
                    return value;
                    }
                }
            }
        },
        series: [
            {
            data: [10000,2,3,4],
            type: 'bar'
            }
        ]

    };
    myCharte.setOption(option3);
</script>
</html>